﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading;
using Young3.FMSearch.Core.Entities;
using Young3.FMSearch.Core.Entities.InGame;
using Young3.FMSearch.Interface;

namespace TimingTest
{
    class Program
    { 
        // run only in release mode
        static void Main(string[] args)
        {
            Thread.Sleep(2000); // pause to get the app running
            for(int i = 0; i < 10; i++)
            {
                Stopwatch sw = Stopwatch.StartNew();
                FMContext context = new FMContext(DatabaseModeEnum.Cached);
                context.LoadData();
                sw.Stop();
                Console.WriteLine(sw.ElapsedMilliseconds);
            }
            Console.ReadKey(true);
        }
    }
}
